package com.zy.entity;

public class User {
    private int id;
    private String username;
    private String password;
    private int userType;
    private double balance;

    public User() {

    }

    public User(int id, String username, String password, int userType, double balance) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.userType = userType;
        this.balance = balance;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setUserName(String userName) {
        this.username = userName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public void setBalance(double balance ) {this.balance = balance;}

    public Integer getId() {
        return id;
    }

    public String getUserName() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public Integer getUserType() {
        return userType;
    }

    public double getBalance() {return balance;}
}
